import { CssVarsProvider } from '@mui/joy';
import { theme } from '../src';
import CssBaseline from '@mui/joy/CssBaseline';

const preview = {
  decorators: [
    (Story) => (
      <CssVarsProvider
        theme={theme}
        defaultMode="system"
        modeStorageKey="theme-mode"
      >
        <CssBaseline />
        <Story />
      </CssVarsProvider>
    ),
  ],
};

export default preview;
